package com.xxx.service;

import java.util.List;

public interface Services<T> {
    T selectByUsername(String username);

    List<T> selectAll(Integer index, Integer num);

    int add(T t);

    int delete(Long id);

    T selectById(Long id);

    int updateById(T t);

    int selectCount();
}
